new Vue({
    el: '#app',
    mixins: [Save],//组件配置文件，路径/utils/components.js
    data() {
        return {
            dataForm: {
                Row_Status: '2'
            },
            category: [],
            childDataForm: [{}],
            article_column: [],
        }
    },
    mounted() {
        /**
         * 组件配置文件中自动执行方法
         * 1.this.init(); //初始化文件
         * 2.this.getData(); //仅修改时执行，根据BOM配置属性查询
         */
        this.getList();
    },
    methods: {
        async getList() {
            const res = await generalApi.generalQueryByTableName({
                Data: 'article_category',
                Condition: `Row_Status='0'`
            })
            const data = await httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'article_column',
                    Condition: `Row_Status='0'`
                },
                type: 'GET'
            })
            this.article_column = data;
            console.log(this.article_column);
            // .then(data => {
            //     console.log(data);

            //     // this.article_category = data;
            // }).catch(xhr => {
            //     this.$message.error("系统错误，请联系开发者!")
            // })
            this.category = res;
        }   
    }
})